COMPILER = g++
CCFLAGS = -g
INCLUDES = -I../includes/
LIBRARY = -L../common/
LIBNAME = libtagcommon.a
INCDIR = ../includes/
tag: tag.o
	${COMPILER} ${CCFLAGS} ${INCLUDES} ${LIBRARY} tag.o -ltagcommon -o tag 

tag.o: ${INCDIR}nPatriciaTrie.h ${INCDIR}tagdefs.h ${INCDIR}getabsmod.h tag.cpp
	${COMPILER} ${CCFLAGS} ${INCLUDES} ${LIBRARY} -c tag.cpp 

clean:	
	rm -rf *.o *~ tag

fresh:  clean tag
